package com.lc.headline.dao.impl;

import com.lc.headline.dao.BaseDao;
import com.lc.headline.dao.NewsTypeDao;
import com.lc.headline.pojo.NewsType;

import java.util.List;

/**
 * @author liuchun
 */
public class NewsTypeDaoImpl extends BaseDao implements NewsTypeDao {

//    private BaseDao baseDao = new NewsTypeDaoImpl();

    @Override
    public List<NewsType> findAllTypes() {
        String sql = "select * from news_type";
        return baseQuery(NewsType.class,sql);
    }
}
